Upgrade Operator Connect Customer License

This request enables you to upgrade the customer license type from OC Essential customer to OC EssentialPlus or OC OC Pro. After the customer has been successfully upgraded, you must establish Token connection with your Microsoft 365 platform (see Switching to Token Authentication).

URI

Copy
{{baseUrl}}/api/v2/customer/{customerGuid}/action/upgrade


HTTP Method

POST

Example Request Body

Copy
{
  "upgradeToLicense": 4,
  "licenseCount": 20
}

Request Body

Parameter

Type

Description

upgradeToLicense

integer

One of the following values:

4: OC Essentials Plus
5: OC Pro

licenseCount

integer

Number of required licenses for the configured license type.

Example Response

The initial response displays the Task Id.

Parameter

Type

Description

taskId

string

The queued task Id that is generated for this action. You must run the Task request to retrieve the status of the action. See Task Status. Note that the tsk_ string in the prefix is unique for this endpoint.

Copy
"tsk_185510"

The execution of the request may take a few minutes. The status will progress from 'In Progress' to 'Completed Success'. See for details.

Copy
{
    "id": "tsk_185510",
    "status": "CompletedSuccess",
    "details": [
        null
    ],
    "executionMessages": [],
    "outputData": {},
    "createTime": "0001-01-01T00:00:00",
    "completeTime": null,
    "cancellationRequested": null
}        

HTTP Responses

200 OK

Parameter

Type

Description

id

string

The task Id that is generated for this action. See Task Status.

status

string

Aggregated status reflecting update status on both the Live Platform and Operator Connect:

Completed Success
Failed

details

array

Additional details.

executionMessages

null

Internal debugging messages.

outputData

list array

-

createTime

string($date-time)

Timestamp indicating the time that the license upgrade request was initiated.

completeTime

string($date-time)

Timestamp indicating the time that the license upgrade request processing completed.

cancellationRequested

Boolean

Indicates whether the request processing was canceled by the client application. This parameter is not relevant for Live Platform.

500 wrong value used: When the 'upgradetoLicense' parameter is configured with an invalid value:
Copy
{
  "upgradeToLicense": 7,
  "licenseCount": 20
}

The following error is displayed:

Copy
{
    "title": "Value cannot be null. (Parameter 's')",
    "status": 500,
    "detail": "ErrorTicket=03a95735-ae13-4c3b-9f92-9fe30ff91db1"
}

See 'upgradeToLicense' parameters shown above for valid types.